<?php

namespace App\Console;

use App\Console\Commands\CreateModel;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    
    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        // $schedule->command('inspire')->hourly();
        $schedule->command('app:order-census 1')->daily(); // 不开票数据统计 每天凌晨12点
        $schedule->command('app:order-census 2')->daily(); // 开票数据统计 每天凌晨12点
        $schedule->command('app:balance-warn')->daily(); // 余额提醒 每天凌晨12点
        $schedule->command('app:zero-balance')->daily(); // 商户零点余额 每天凌晨12点
       // $schedule->command('app:test')->everyMinute(); // 商户零点余额 每天凌晨12点
    }

    /**
     * Register the commands for the application.
     *
     * @return void
     */
    protected function commands()
    {
        $this->load(__DIR__.'/Commands');

        require base_path('routes/console.php');
    }
}
